

package com.jingdun.sport.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jingdun.sport.bean.model.*;
import com.jingdun.sport.common.util.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

public interface RoomService extends IService<Room> {

    public void addRoom(Room room);

    public Room getRoomDetail(@Param("params") Map<String, Object> m);

    public Page<GetPaginationRoomByPrizeTypeResp> getPaginationRoomByPrizeType(@Param("params") Map<String, Object> m);

    public void updateRoom(Room room);

    public List<Room> getRoomList(@Param("params") Map<String, Object> m);

    List<Room> getUnfinishedRoomList(String today);

    List<Room> getRoomListByActivityId(Set<Long> activityIdSet);

    Room newGetById(Long roomId);

    NewSportConfig getByType(String sportCategory);

    List<ListTypesResponse> getListTypes(Integer parent, PageParam pageParam);

    Page<GetPaginationRoomByPrizeTypeResp> getPaginationRoomBySportCategory(Map m);

    Map bonusPools();

    Map getUserUnWithdrawalSum();
}
